<template>
  <div class="notice_box">
    <el-row>
      <el-col :span="3" style="background: #eaedf2;height: 900px;">
        <div class="left_one">消息中心</div>
        <!-- <div class="left_two" 
              @click="changeColor()">未读消息
            <span class="left_two_num">03</span>
        </div> -->
         <div  v-for="(item,index) in randOptions" :key="index" class="left_two"
              @click="change(index)"   :class='{ active:index===number}'>
             <div>{{item.name}}<span class="left_two_num">03</span></div>
            
        </div>
        <!-- <div class="left_three" 
              @click="changeColor()">已读消息</div>
        <div class="left_four" 
              @click="changeColor()">系统通知</div> -->
      </el-col>
      <el-col :span="21">
        <div class="right_one">
          <div class="right_one_one">未读消息</div>
          <div class="right_one_two">
            <el-input style="width:360px" size="large"   v-model="input" placeholder="请输入内容">
                <i slot="suffix" class="el-input__icon el-icon-search"></i>
            </el-input>
          </div>
          <div class="right_one_three">全部未读</div>
        </div>
        <div>
            <div class="right_two" v-for="(item,index) in 10" :key="index">
            <div class="right_two_img">
                <img src="../../assets/image/header.png" alt="" class="header_img">
            </div>
            <div class="right_two_name">
                张佳怡
            </div>
            <div class="right_two_container">
                【特惠最后一周】域名，商标。公司注册，资质办理冰点价，全线上快速办理，点击图片立即了解更多优惠
            </div>
            <div class="right_two_time">
                2021-08-04 12:22:52
            </div>
            <div class="right_two_toxq">
                查看详情
            </div>
        </div>
        </div>
        
        <div class="fenye">
               <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage4"
      :page-sizes="[100, 200, 300, 400]"
      :page-size="100"
      layout="total, sizes, prev, pager, next, jumper"
      :total="400">
    </el-pagination>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      input: "",
      currentPage4:4,
      number:0,
     randOptions:[
         {name:'未读消息'},
         {name:'已读消息'},
         {name:'系统通知'}
     ]
    };
  },
  methods: {
      change: function(index) {

                                    this.number= index;    //重要处

                        } ,
      handleSizeChange(val) {
        console.log(`每页 ${val} 条`);
      },
      handleCurrentChange(val) {
        console.log(`当前页: ${val}`);
      }
    },
  components: {},
};
</script>

<style  lang="scss">
.active {
    background-color: #ffffff;
  }
.left_one {
  font-size: 18px;
  padding: 30px 0 30px 30px;
  font-family: Microsoft YaHei;
  color: #000000;
      font-weight: bold;
}
.left_two{
    padding: 15px 0 15px 30px;
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #333333;
    .left_two_num{
        background: #FF3434;
    border-radius: 2px;
    padding: 4px 4px;
    margin-left: 39%;
    }
}
.left_three{
    padding: 15px 0 15px 30px;
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #333333;
}
.left_four{
    padding: 15px 0 15px 30px;
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #333333;
}
.right_one{
        margin: 0 10px;
        display: flex;
        border-bottom: 1px solid #E6E6E6;
    justify-content: space-between;
    padding-bottom: 10px;
    .right_one_one{
       padding: 28px 0 20px 26px;
    color: #333333;
        font-size: 18px;
    font-weight: bold   ;
    }
    .right_one_two{
            margin: 0 10px;
            margin-left: 35%;
            margin-top: 26px;
    }
    .right_one_three{
            font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #3A62D7;
    padding: 41px 40px 7px 0;
}
    }
.right_two{
    position: relative;
    margin: 0 10px;
    border-bottom: 1px solid #E6E6E6;
    display: flex;
    .right_two_img{
        position: absolute;
            width: 50px;
    left: 10px;
    top: 3px;
    height: 50px;
    border-radius: 50%;
    .header_img{
        width: 50px;
    height: 50px;
    }
    }
    .right_two_name{
        margin-left: 5%;
    line-height: 64px;
        font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    color: #666666;
    }
    .right_two_container{
            margin-left: 1%;
                width: 61%;
    padding-top: 23px;
        font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    color: #666666;
    }
    .right_two_time{
        line-height: 64px;
            font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #999999;
    }
    .right_two_toxq{
        line-height: 64px;
        margin-left: 167px;
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #999999;
    }
}
.fenye{
      position: fixed;
    bottom: 1px;
    left: 30%;
}

</style>